<%-- 
    Document   : SolicitudRegistro
    Created on : 19/05/2008, 08:36:31 PM
    Author     : Alejandro
--%>

<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="com.akcess.vo.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
            String path = request.getContextPath();
            String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
        <!--  Version: Multiflex-3.12 / Overview                    --><!--  Date:    January 20, 2008                             --><!--  Design:  www.1234.info                                --><!--  License: Fully open source without restrictions.      --><!--           Please keep footer credits with the words    --><!--           "Design by 1234.info" Thank you!             -->


        
        <base href="<%=basePath%>">
        <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_setup.css">
        <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_text.css">
    <link rel="icon" type="image/x-icon" href="./img/favicon.ico"><title>SRR - Sistema de Reserva de Recursos</title><!-- Global IE fix to avoid layout crash when single word size wider than column width --><!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]--><link href="./css/highlighter.css" type="text/css" rel="stylesheet"><link href="./css/highlighter_002.css" type="text/css" rel="stylesheet"></head><body>
        <!-- Main Page Container -->
        <div class="page-container">
            
            <!-- For alternative headers START PASTE here -->

<!-- A. HEADER -->      
            <div class="header">
                
                <!-- A.1 HEADER TOP -->
                <div class="header-top">
                    
                    <!-- Sitelogo and sitename -->
                    <a class="sitelogo" href="#" title="Go to Start page"></a>
                    <div class="sitename">
                        <h1><a href="./css/index.html" title="Go to Start page">SRR v2.0</a></h1>
                        <h2>Sistema de Reserva de Recursos</h2>
                    </div>
                    
                    <!-- Navigation Level 0 -->
                                 

        <!-- Navigation Level 1 -->
                    <div class="nav1">
                        <ul>
                            
                        </ul>
                    </div>              
                </div>    
                <!-- A.2 HEADER MIDDLE -->
                <div class="header-middle">    
                    <script>

                        var mydate=new Date();
                        var year=mydate.getYear();
                        if (year < 1000)
                            year+=1900;
                        var day=mydate.getDay();
                        var month=mydate.getMonth()+1;
                        if (month<10)
                            month="0"+month;
                        var daym=mydate.getDate();
                        if (daym<10)
                            daym="0"+daym;
                        document.write("<h2><font color=white face='Arial'><b>"+daym+"/"+month+"/"+year+"</b></font></h2>")

                    </script>
                    <!-- Site message -->
                    <div class="sitemessage">
                        <h1>Facultad Politecnica (UNA)</h1>
                        <h2>Un Trabajo Practico de la materia<br>Ingenieria de Sotfware II<br>2008</h2>
                        
                    </div>        
                </div>
                <!-- A.4 HEADER BREADCRUMBS -->    
    <!-- Breadcrumbs -->
                <div class="header-breadcrumbs">   
                    <!-- Search form -->          
                </div>
            </div>
            <!-- For alternative headers END PASTE here -->
            <!-- B. MAIN -->
            <div class="main">                
                <!-- B.1 MAIN NAVIGATION -->
                <div class="main-navigation">                
                    <!-- Navigation Level 3 -->
                <!-- Navigation with grid style -->
                    <dl class="nav3-grid">                    
                        <dt></dt>
                        <dt></dt>                    
                    </dl>     
                    <!-- Template infos -->    
                </div>                
                <!-- B.2 MAIN CONTENT -->
                <div class="main-content">
                    
                    <!-- Pagetitle -->
                    <h1 class="pagetitle">Solicitud de Registro</h1>
                    <form name="crear" action="GestionarSolicitudes_de_Registro?hacer=crear" method="post">
                        <table border="0">
                            <tbody>
                                <%
            session.setAttribute("registro", "true");
            Solicitud_registro solicitud = new Solicitud_registro();
            Vector camposSol = solicitud.getCampos();
            for (int i = 0; i < camposSol.size(); i++) {
                String campo = (String) camposSol.get(i);
                if (!(campo.equals("Contrasenha")) && !(campo.equals("Borrado")) && !(campo.equals("id_usuario")) && !(campo.equals("Observacion")) && !(campo.equals("idtipodoc"))) {
                    out.println("<tr>");
                    out.println("<th class=\"top\"><b>" + campo + "</b> </th>");
                    out.println("<td><input type=\"text\" name=\"" + campo.replace(" ", "_") + "\" value=\"\"></td>");
                    out.println("</tr>");
                } else {
                    if (campo.equals("idtipodoc")) {
                        out.println("<th class=\"top\"><b>Tipo de Documento</b> </th>");
                        out.println("<td><select name=\"" + campo + "\">");
                        out.println("<option value=" + 1 + ">Cedula de Identidad");
                        out.println("<option value=" + 2 + ">Pasaporte");
                        out.println("</select>");
                        out.println("</td>");
                    } else if (campo.equals("Contrasenha")) {
                        out.println("<tr>");
                        out.println("<th class=\"top\"><b>" + campo + "</b> </th>");
                        out.println("<td><input type=\"password\" name=\"" + campo + "\" value=\"\"></td>");
                        out.println("</tr>");
                    } else if (campo.equals("Observacion")) {
                        out.println("<tr>");
                        out.println("<th class=\"top\"><b>" + campo + "</b> </th>");
                        out.println("<td><textarea name=\"" + campo + "\" cols=\"15\" rows=\"5\" ></textarea></td>");
                        out.println("</tr>");
                    }
                }
            }
            out.println("</tbody>");
            out.println("</table>");

            out.println("<table border=\"0\">");
            out.println("<tbody>");
            out.println("<tr>");
            out.println("<td>");
            out.println("<center><input type=\"submit\" name=\"btnGuardar\" value=\"Enviar\"></center>");
            out.println("</td>");
            out.println("<td>");
            out.println("<center><input type=\"button\" name=\"btnCancelar\" value=\"Cancelar\" onclick=\"location.href = './jsp/login.jsp' \"\"></center>");
            out.println("</td>");
            out.println("</tr>");
                                %>                   
                            </tbody>
                        </table>
                    </form>
                    <!-- B.3 SUBCONTENT -->
                </div>
            </div>
            <!-- C. FOOTER AREA -->   
            <div class="footer">
                <p>Copyright © 2008 R2andCoco Company | All Rights Reserved</p>
                <p class="credits">Design by <a href="http://1234.info/" title="Designer Homepage">1234.info</a> | Desarrollado by <a href="http://www.orkut.com/Profile.aspx?uid=14750215686710077777" title="Perfil de R2">R2</a> y <a href="http://www.orkut.com/Profile.aspx?uid=9019760314955957491" title="Perfil de Coco">Coco</a> | <a href="http://validator.w3.org/check?uri=referer" title="Validate XHTML code">XHTML 1.0</a> | <a href="http://jigsaw.w3.org/css-validator/" title="Validate CSS code">CSS 2.0</a></p>
            </div>    
            
        </div>         
    </body>
</html>